﻿namespace npantarhei.contrib.mef
{
	using System;
	using System.ComponentModel.Composition;

	[MetadataAttribute]
	[AttributeUsage(AttributeTargets.Method)]
	public class ExportOperationAttribute : ExportAttribute
	{
		public ExportOperationAttribute(string name, Type delegateType)
			: base(name)
		{
			this.Name = name;
			this.MethodType = delegateType;
		}

		public string Name { get; private set; }

		public Type MethodType { get; private set; }
	}
}